package br.com.dev.tcc.bean;

public class ResponseData<T> {

	private boolean success;
	private T data;
	private String errorMessage;

	public ResponseData(boolean success, String errorMessage, T data){
		this.success = success;
		this.errorMessage = errorMessage;
		this.data = data;
	}
	
	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
}
